<?php 
$ac=$_GET['ac'];
$op=$_GET['op'];
$tpl->assign('ac',$ac);
// $tpl->assign('nav',$navtitle);
$tpl->assign('op',$op);

$perpage = 30;
$wheresql=" where 1=1 ";
$mpurl = "nadmin.php?ac={$ac}&appid={$appid}";
$page = empty($_GET['page'])?1:intval($_GET['page']);
$start = ($page-1)*$perpage;
?>